/**
 ******************************* ICE *******************************
 * ========================================================================
 * Project:		icemasterdataservices
 * Package:		org.ice4apps.master.dataservices
 * File:		IceMasterDataServiceLocator.java
 * Author: 		robin
 * Date: 		Feb 11, 2010
 * Description:	
 * ========================================================================
 * 
 */

package org.ice4apps.master.dataservices;

import javax.naming.InitialContext;

public final class IceMasterDataServiceLocator {
    private static IceMasterDataServiceLocal ds = null;
    
    public static IceMasterDataServiceLocal getIceMasterDataService () throws Exception {
        if (ds == null){
            InitialContext ctx = new InitialContext();  
            ds = (IceMasterDataServiceLocal)ctx.lookup ("IceMasterDataService/local");
        }
        return ds;
    }
}
